package com.saxon.pojo;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;
import java.util.*;

public class Student {
    private String name;
    @Resource
    private Address address;
    private Map<String,String> card;
    private String[] books;
    private List<String> teacher;
    private Set<String> games;
    private Properties info;
    private String wife;

    public Student ( String name) {
        this.name = name;
    }

    @Override
    public String toString () {
        return "Student{" +
                "name='" + name + '\'' +
                ", address=" + address +
                ", card=" + card +
                ", books=" + Arrays.toString (books) +
                ", teacher=" + teacher +
                ", games=" + games +
                ", info=" + info +
                ", wife='" + wife + '\'' +
                '}';
    }

    public String getWife () {
        return wife;
    }

    public void setWife (String wife) {
        this.wife = wife;
    }

    public Set<String> getGames () {
        return games;
    }

    public void setGames (Set<String> games) {
        this.games = games;
    }

    public Properties getInfo () {
        return info;
    }

    public void setInfo (Properties info) {
        this.info = info;
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public Address getAddress () {
        return address;
    }

    public void setAddress (Address address) {
        this.address = address;
    }

    public Map<String, String> getCard () {
        return card;
    }

    public void setCard (Map<String, String> card) {
        this.card = card;
    }

    public String[] getBooks () {
        return books;
    }

    public void setBooks (String[] books) {
        this.books = books;
    }

    public List<String> getTeacher () {
        return teacher;
    }

    public void setTeacher (List<String> teacher) {
        this.teacher = teacher;
    }

}
